package com.lxp.userms.mapper;

import com.lxp.userms.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int insertUser(User user);
    User selectUserByUsername(String username);
    User selectUserById(int id);
    int updateUser(User user);
    int deleteUser(int id);
    List<User> selectAllUsers();
    List<User> selectUsersByRole(int role); // 添加此方法声明
}